package com.jiangli.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.concurrent.atomic.LongAccumulator;

/**
 * 菜品
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Dish implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 菜品主键ID
     */
    private Long id;

    /**
     * 菜品所属商家ID
     */
    private Integer merchantId;

    /**
     * 菜品名称
     */
    private String dishName;

    /**
     * 菜品所属分类ID
     */
    private Integer dishCategoryId;

    /**
     * 菜品热量
     */
    private Integer calorie;

    /**
     * 菜品图片路径
     */
    private String image;

    /**
     * 菜品价格
     */
    private Integer price;
    //菜品评分
    private float dishRating = 0;
    //评价人数
    private Long ratingCount =0L;

    /**
     * 菜品描述信息
     */
    private String description;

    /**
     * 菜品创建时间
     */
    private LocalDateTime createTime;

    /**
     * 菜品信息更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 菜品创建人ID
     */
    private Integer createUser;
}
